I had a recent problem with the BOB that came with my mill going into fault mode. I had figured out that the charge pump frequency was too high. I scoped out the smooth stepper that I was replacing and found that a IO_PWMS_PRESCALE setting of 4 duplicated the SS frequency, (about 1Khz).
The problem I now have is the PWM for the brushless motor controller. At the lower frequency, I can't take the duty cycle down low enough get to the full spindle speed of 6000. Best I can get is around 3500. Playing around, it looks like if I set the IO_PWMS_PRESCALE to 20, the charge pump appears happy, and I can get to 5500 RPM.
Is there more than one independently programmable PWM available?
If now, would another option be to tie the charge pump to an output and then create a simple forever loop toggling the charge pump line? Other than implementing a incrementing counter that reaches a certain value to signal when to toggle the line in order to slow down the frequency, is there a different option within the KFlop C world?
Eric